package com.ruoyi.factorydata.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.factorydata.domain.WorkReport;
import com.ruoyi.factorydata.domain.dto.ReportStatisticsSumDTO;

import java.util.List;

/**
 * 报工记录Service接口
 *
 * @author ruoyi
 * @date 2025-07-28
 */
public interface IWorkReportService extends IService<WorkReport> {
    /**
     * 查询报工记录
     *
     * @param id 报工记录主键
     * @return 报工记录
     */
    public WorkReport selectWorkReportById(Long id);


    List<WorkReport> getListByWorkOrderId(Long workOrderId);
    /**
     * 查询报工记录列表
     *
     * @param workReport 报工记录
     * @return 报工记录集合
     */
    public List<WorkReport> selectWorkReportList(WorkReport workReport);

    /**
     * 新增报工记录
     *
     * @param workReport 报工记录
     * @return 结果
     */
    public int insertWorkReport(WorkReport workReport);

    /**
     * 修改报工记录
     *
     * @param workReport 报工记录
     * @return 结果
     */
    public int updateWorkReport(WorkReport workReport);

    /**
     * 批量删除报工记录
     *
     * @param ids 需要删除的报工记录主键集合
     * @return 结果
     */
    public int deleteWorkReportByIds(Long[] ids);

    /**
     * 删除报工记录信息
     *
     * @param id 报工记录主键
     * @return 结果
     */
    public int deleteWorkReportById(Long id);

    /**
     * 报工统计
     */
    ReportStatisticsSumDTO getReportStatisticsSum(WorkReport workReport);
}